package hb.software.selectcourse.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import hb.software.selectcourse.entity.SelectCourse;
import hb.software.service.selectcourse.SelectCourseManager;
import edu.zut.hb.software.base.web.GenericController;

@RestController
@RequestMapping("/selectCourse")
public class SelectCourseController extends GenericController<SelectCourse, Long, SelectCourseManager> {

	SelectCourseManager selectCourseManager;

	@Autowired
	public void setSelectCourseManager(SelectCourseManager selectCourseManager) {
		this.selectCourseManager = selectCourseManager;
		this.manager = this.selectCourseManager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/selectCourse/index";
		return result;
	}

}
